package dto

type CreateBlogArticleReq struct {
	Title         string `json:"title" db:"title" binding:"required"`
	Body          string `json:"body" db:"body" binding:"required"`
	PubTime       string `json:"pub_time" db:"pub_time" binding:"required"`
	Status        string `json:"status" db:"status" binding:"required"`
	CommentStatus string `json:"comment_status" db:"comment_status" binding:"required"`
	Type          string `json:"type" db:"type" binding:"required"`
	ArticleOrder  int    `json:"article_order" binding:"min=0" db:"article_order"`
	ShowToc       bool   `json:"show_toc" binding:"omitempty" db:"show_toc"`
	AuthorID      int    `json:"author_id" db:"author_id" binding:"required"`
	CategoryID    int    `json:"category_id" db:"category_id" binding:"required"`
	TagIds        []int  `json:"tag_ids" db:"tag_ids"`
}
